package com.cykj.page03;

/**
 * @BelongsProject: HandTomcat
 * @BelongsPackage: com.cykj.page03
 * @Author: 阿隆
 * @CreateTime: 2025-11-12 20:58
 * @Description: TODO
 * @Version: 1.0
 */
public class MyRunnableTwo implements Runnable {

    //执行
    @Override
    public void run() {

        try {
            //睡眠
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }


        //要执行的代码 线程任务
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName() + " " + i);
        }


        //死亡
    }
}